<ul class="tinyPaginator">
  
<?php
if(isset($this->previous)){
	//LAY ID CUA MENU 2 TREN URL
	if(isset($_GET['vp'])){
		echo '<li><a href="'.$this->url(array('page'=>$this->first)).'?vp='.$_GET['vp'].'"><<</a></li>';
		echo '<li><a href="'.$this->url(array('page'=>$this->previous)).'?vp='.$_GET['vp'].'">< </a></li>';
	}else{
		echo '<li><a href="'.$this->url(array('page'=>$this->first)).'"><<</a></li>';
		echo '<li><a href="'.$this->url(array('page'=>$this->previous)).'">< </a></li>';
	} 
	
}

foreach ($this->pagesInRange as $page) {
	if($this->current != $page){
		//LAY ID CUA MENU 2 TREN URL
		if(isset($_GET['vp'])){
			echo '<li><a href="'.$this->url(array('page'=> $page)).'?vp='.$_GET['vp'].'" >'.$page.'</a></li>'; 
		}else {
			echo '<li><a href="'.$this->url(array('page'=> $page)).'" >'.$page.'</a></li>';
		}
	}else{
		echo '<li><a class="active-paginator">'.$page.'</a></li>';	
	}
}

if(isset($this->next)){
	//LAY ID CUA MENU 2 TREN URL
	if(isset($_GET['vp'])){
		echo '<li><a href="'.$this->url(array('page'=>$this->next)).'?vp='.$_GET['vp'].'">></a></li>';
		echo '<li><a href="'.$this->url(array('page'=>$this->last)).'?vp='.$_GET['vp'].'">>></a></li>';
	}else {
		echo '<li><a href="'.$this->url(array('page'=>$this->next)).'">></a></li>';
		echo '<li><a href="'.$this->url(array('page'=>$this->last)).'">>></a></li>';
	}
}

?>

</ul>